import {useLocation} from 'react-router-dom'
export default ()=>{
    const {state}=useLocation()
    console.log('state',state);
    return (<>
        <span>{state.firstMenu}/{state.secondMenu}</span>
    </>)
} 
